import MyHome from "@/components/MyHome.vue";
import MyInformation from "@/components/MyInformation.vue";
import MyMine from "@/components/MyMine.vue";
import MyRent from "@/components/MyRent.vue";
import RentDetail from "@/components/RentDetail.vue";
import VueRouter from "vue-router";
import Vue from 'vue'


Vue.use(VueRouter)

export const router = new VueRouter({
    routes:[
      {path:'/home', component: MyHome},
      {path: '/rent',component: MyRent},
      {path:'/info',component: MyInformation},
      {path:'/mine',component:MyMine},
      {path:'/detail/:name', component: RentDetail},
      {path:'/', redirect: '/home'}
    ]
  })
